package com.xt.favorites.admin.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 属性设置
 * 
 * @author DingYS
 * 
 */
@Data
@TableName("config")
public class Config  {

	private static final long serialVersionUID = 1L;
	@TableId
	private Long id;
	private Long userId;
	private String defaultFavorties;
	private String defaultCollectType;
	private String defaultModel;
	private Long createTime;
	private Long lastModifyTime;
	private String collectTypeName;
	private String modelName;



	public String getCollectTypeName() {
		return defaultCollectType.equals("private")?"私密":"公开";
	}

	public void setCollectTypeName(String collectTypeName) {
		this.collectTypeName = collectTypeName;
	}

	public String getModelName() {
		return defaultModel.equals("simple")?"简单":"专业";
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

}